package com.sgb.kjwl.view.widget.lease.common;

import android.view.View;

import androidx.databinding.DataBindingUtil;
import androidx.databinding.ViewDataBinding;
import androidx.recyclerview.widget.RecyclerView;

public class CommonItemViewHolder extends RecyclerView.ViewHolder {
    private ViewDataBinding mBinding;

    public CommonItemViewHolder(View itemView) {
        super(itemView);
        mBinding = DataBindingUtil.bind(itemView);
    }

    public CommonItemViewHolder setBinding(int variableId, Object object) {
        mBinding.setVariable(variableId, object);
        mBinding.executePendingBindings();
        return this;
    }

    public ViewDataBinding getBinding() {
        return mBinding;
    }
}
